package pub.wkq.gateway.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"pub.wkq"}) //扫描公共模块下的所有类
@EnableDiscoveryClient //激活服务发现客户端
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
